<template>
  <div>
    <h2>子组件</h2>
    <hr />
    <Grandson :callbackGrandson="callback"></Grandson>
  </div>
</template>

<script>
import Grandson from "./孙组件.vue";
export default {
  props: {
    callback: {
      type: Function,
    },
  },
  data() {
    return {
      msg: "子组件",
    };
  },
  components: {
    Grandson,
  },
};
</script>

<style scoped>
</style>